<template>
  <div>
<!--    <pulldown header="就业援助记录">-->
<!--      <div slot="content">-->
<!--        <succourList ref="succourList1"></succourList>-->
<!--      </div>-->
<!--    </pulldown>-->
    <pulldown header="脱贫记录">
      <div slot="content">
        <succourList ref="succourList2"></succourList>
      </div>
    </pulldown>
    <pulldown header="低保救助服务">
      <div slot="content">
        <succourList ref="succourList3"></succourList>
      </div>
    </pulldown>
    <pulldown header="临时救助服务">
      <div slot="content">
        <succourList ref="succourList4"></succourList>
      </div>
    </pulldown>
    <pulldown header="其他救助服务">
      <div slot="content">
        <succourList ref="succourList5"></succourList>
      </div>
    </pulldown>
    <!--    {{$filterDictTextByCache('process_approval_type', 1)}}-->
  </div>
</template>

<script>
import pulldown from '../../../modules/pulldown'
import {basicDetail, Families} from "@api/sjsk/archives";
import succourList from "@views/sjsk/holographicArchives/modules/intervene/succourList";
export default {
  components:{ pulldown,succourList },
  data(){
    return   {
      resultData:{},
      innse:true,
      user:{},
      pageData:[],
    }
  },
  methods:{
    succourFT(){
      //五张列表数据分类和获取
      // this.$refs.succourList1.succourListFT(0)
      // this.$refs.succourList1.refreshTable([1,2])

      this.$refs.succourList2.succourListFT(1)
      this.$refs.succourList2.refreshTable([3])

      this.$refs.succourList3.succourListFT(2)
      this.$refs.succourList3.refreshTable([4])

      this.$refs.succourList4.succourListFT(3)
      this.$refs.succourList4.refreshTable([5])

      this.$refs.succourList5.succourListFT(4)
      this.$refs.succourList5.refreshTable([6,7,8])
    },
    getbasicDetail(){
      console.log(this.user)
      basicDetail({basePersonId:this.user.id,idNo:this.user.identityNumber}).then(ser => {
        if(ser.success){
          console.log(ser)
          this.resultData = ser.result
        }
      }).catch(err =>{

      })

    },
    refreshTable(){
      this.succourFT()
    },
    onSelectedRow(keys) {
      this.selectKeys = keys
      this.isDisabled = keys.length > 0 ? false : true
    },
    onTableChange(pagination, pageFilter, sorter) {
      let keyMap = { currentPage: 'pageNo' }
      let paginations = Object.keys(pagination).reduce((newData, key) => {
        let newKey = keyMap[key] || key
        newData[newKey] = pagination[key]
        return newData
      }, {})
      this.pageFilter = Object.assign({}, this.pageFilter, paginations)
      this.refreshTable()
    },
  }
}
</script>

<style scoped>

</style>